import axios from "axios";

let MemberCenterProvider = {
    register: function(payload){
        let url = 'api/user/Register';
        return axios.post(url, payload)
        .then(res=>res).catch();
    },
    sendmsgnodejs:function(payload){
        let url = 'api/user/Sendmsg';
        return axios.post(url,payload)
        .then(res=>res).catch();
    },
    login: function(payload){
        let url = 'api/user/login';
        return axios.post(url, payload)
        .then(res=>res).catch();
    },
    layin: function(payload){
        let url = 'api/user/layin';
       return axios.get(url, payload)
       .then(res=>res).catch();
    },
    layout: function(payload){
        let url = 'api/user/layout';
        return axios.get(url, payload)
        .then(res=>res).catch();
    },
    findPsw: function(payload){
        let url = 'api/user/findPsw';
        return axios.post(url, payload)
        .then(res=>res).catch();
    },
    checkLogin: function(payload){
        let url = 'api/user/checkLogin';
        return axios.get(url, payload)
        .then(res=>res).catch();
    },
    checkStu: function(payload){
        let url = 'api/user/checkStu';
        return axios.post(url, payload)
        .then(res=>res).catch();
    },
    checkStuReq: function(payload){
        let url = 'api/user/checkStuReq';
        return axios.get(url, payload)
        .then(res=>res).catch();
    },
    getUserMsg: function(payload){
        let url = 'api/user/getUserMsg';
        return axios.get(url, payload)
        .then(res=>res).catch();
    }

}

export default MemberCenterProvider;